QT       += core gui webkit network

TARGET = myspaces
TEMPLATE = lib
CONFIG += dll internal

include(../buildconf.pri)

DEFINES += MySpaces_LIBRARY

INCLUDEPATH += ../mysettings ../JavaScriptApi ../ProxyDlg ../DownloadManager ../myNetwork ../.ui

win32: LIBS += -lmysettings$$MYSPACES_MAJOR_VERSION -lJavaScriptApi$$MYSPACES_MAJOR_VERSION -lProxyDlg$$MYSPACES_MAJOR_VERSION -lDownloadManager$$MYSPACES_MAJOR_VERSION -lmyNetwork$$MYSPACES_MAJOR_VERSION -L../bin
else: LIBS += -lmysettings -lJavaScriptApi -lProxyDlg -lDownloadManager -lmyNetwork -L../lib

PRECOMPILED_HEADER = pch.h

OTHER_FILES += \
    data/style/webstyle.css \
    data/t_icon_home.png \
    data/style/style.css \
    data/javascript/mainpage.js \
    data/javascript/jquery.min.1.7.js \
    data/button-close.png \
    data/browser.ico \
    data/images/hborder.png \
    locale/mySpaces_ru.ts \
    data/htmls/mainpage.html \
    data/icons/stop.png \
    data/icons/settings.png \
    data/icons/reload.png \
    data/icons/forward.png \
    data/icons/back.png \
    data/htmls/settings.html \
    data/htmls/blank.html \
    data/icons/bug.png \
    data/htmls/manageusers.html \
    data/javascript/jquery.json-2.2.min.js \
    data/style/tabs.css \
    data/style/bs140.css \
    data/icons/spaces.png

HEADERS += \
    tabpage.h \
    pch.h \
    mywebview.h \
    myspaces.h \
    myspaces_global.h \
    useragent.h

SOURCES += \
    tabpage.cpp \
    mywebview.cpp \
    myspaces.cpp \
    useragent.cpp

RESOURCES += \
    data/data.qrc

unix {
    isEmpty(PREFIX) {
        PREFIX = /usr/local
    }
    BINDIR = $$PREFIX/lib

    INSTALLS += target
    target.path = $$BINDIR

    DATADIR = $$PREFIX/share
}

include(../locale.pri)
